package org.opens.excel.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class EasyPoiEntity {

    @Excel(name = "主键", orderNum = "1", width = 20)
    private Integer id;

    @Excel(name = "姓名", orderNum = "2", width = 20)
    private String name;

    @Excel(name = "单价", orderNum = "3", width = 20)
    private BigDecimal price;

    @Excel(name = "总价", orderNum = "4", groupName = "价格信息", width = 20)
    private BigDecimal totalPrice;

    @Excel(name = "uuid", orderNum = "5", groupName = "价格信息", width = 20)
    private Long uuid;

    @Excel(name = "精度", orderNum = "6", groupName = "精度信息", width = 20)
    private Float accuracy;

    @Excel(name = "双精度", orderNum = "7", groupName = "精度信息", width = 20)
    private Double doubleAccuracy;

    @Excel(name = "创建时间", orderNum = "8", format = "yyyy年MM月dd日", width = 20)
    private Date createDate;

}
